package cn.com.cetccst.activation.network.response;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class AuthTypeResponse extends BaseResponse{

    /**
     * {
     *     "authTypes": [
     *         {
     *             "type": "PRE"
     *         },
     *         {
     *             "type": "PIN"
     *         },
     *         {
     *             "type": "SMS",
     *             "verificationCodeExpiry": 180
     *         }
     *     ],
     *     "activationToken": "Y0Obs+IFmxoNhUCLSg64DqFe7TmkowUogxNlP6knrJlqWFHXoTYHZqoKA9gbEcwwLVCAwzSfAZmW85ylE+eU2evuVMQlCfbCbDoQAZGfKPdj7IcwHwUVHK3EcblUxZzX5l0yHNE9xI6JD7vdQoQHXbeQYud\/A97hIyCSVNhIgLk=",
     *     "engine": {
     *         "regId": "emmMainApp17EA6507A81B58BE46E0AF",
     *         "level": 2
     *     }
     * }
     */
    @SerializedName("authTypes")
    private List<AuthType> authTypes;
    @SerializedName("activationToken")
    private String activationToken;
    @SerializedName("engine")
    private Engine engine;

    public List<AuthType> getAuthTypes() {
        return authTypes;
    }

    public String getActivationToken() {
        return activationToken;
    }

    public Engine getEngine() {
        return engine;
    }

    static class AuthType {
        @SerializedName("type")
        private String type;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }

    static class Engine {
        @SerializedName("regId")
        private String regId;
        @SerializedName("level")
        private int level;

        public String getRegId() {
            return regId;
        }

        public void setRegId(String regId) {
            this.regId = regId;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }
    }
}
